package data;

import java.util.HashMap;

public class StockURLDataBuffer {
	private static HashMap<String, String> data = new HashMap<String, String>();
	
	public static HashMap<String, String> getData() {
		return data;
	}

	public static void put(String code,String url){
		synchronized (data) {
			data.put(code, url);
		}
	}
	
	public static String getUrlData(String code){
		synchronized (data) {
			return data.get(code);
		}
	}
}
